package com.yunsc.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunsc.product.dao.YunscGoodsCategoryRelDao;
import com.yunsc.product.entity.YunscGoodsCategoryRelEntity;
import com.yunsc.product.service.YunscGoodsCategoryRelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;


@Service("yunscGoodsCategoryRelService")
public class YunscGoodsCategoryRelServiceImpl extends ServiceImpl<YunscGoodsCategoryRelDao, YunscGoodsCategoryRelEntity> implements YunscGoodsCategoryRelService {

    @Resource
    private YunscGoodsCategoryRelDao goodsCategoryRelDao;
    /**
     * 根据商品ID获取商品分类列表
     * @param goodsId 商品ID
     * @return 商品分类列表
     */
    @Override
    public List<Integer> queryCategoryIdsByGoodsId(Integer goodsId) {
        return goodsCategoryRelDao.queryCategoryIdsByGoodsId(goodsId);
    }



}